package com.mccken.designpattern.create_type.singleton;

import java.util.concurrent.atomic.AtomicLong;

/**
 * @program: mccken-collect
 * @description:
 * @author: mccken
 * @create: 2024-03-11 12:04
 **/
public class IdGenerator1 {
	
	private AtomicLong id = new AtomicLong(0);
	public final static IdGenerator1 instance = new IdGenerator1();
	private IdGenerator1() {
		
	}
	
	public IdGenerator1 getInstance() {
		return instance;
	}
	
}
